array rotation algorithm

visit shbcf.ru